from django.db import models


class Barcodes(models.Model):
    id = models.BigAutoField(primary_key=True)
    barcode = models.PositiveBigIntegerField()
    name = models.CharField(max_length=150)
    spec = models.CharField(max_length=40, blank=True, null=True)
    unit = models.CharField(max_length=10, blank=True, null=True)
    price = models.CharField(max_length=10, blank=True, null=True)
    brand = models.CharField(max_length=30, blank=True, null=True)
    supplier = models.CharField(max_length=80, blank=True, null=True)
    made_in = models.CharField(max_length=40, blank=True, null=True)
    created_at = models.DateTimeField(blank=True, null=True)
    updated_at = models.DateTimeField(blank=True, null=True)
    deleted_at = models.DateTimeField(blank=True, null=True)

    class Meta:
        managed = False
        db_table = 'barcodes'
